package com.jjclub.config;

import com.jjclub.beanStudy.Book;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Classname BeanConfig
 * @Description TODO
 * @Date 2019/10/29 11:44
 * @Created by jq
 */
@Configuration
public class BeanConfig {
    /**
     * description:使用@Bean中的initMethod = "init",destroyMethod = "destry"指定初始化和销毁方法
     * @param: []
     * @author: jj
     * @date: 2019/10/29 11:48
     * @return com.jjclub.beanStudy.Book
     **/
//    @Bean(initMethod = "init",destroyMethod = "destry")
//    public Book book(){
//       return new Book();
//    }
}
